<include file="Public:header_content" />


        <div class="row">

                    <div class="ibox-content">
                        <form id='add-member-form' class="form-horizontal m-t" method="post" action="__SELF__" >
                            <input type="hidden" name="reply_id" value="<{$Think.get.message_id}>" />
                            <input type="hidden" name="re_member_id" value="<{$Think.get.member_id}>" />
                            <div class="form-group">
                                <label class="col-sm-3 control-label">对方内容：</label>
                                <div class="col-sm-6">
                                    <input class="form-control" disabled type="text" value="<{$Think.get.message|urldecode}>" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">回复内容：</label>
                                <div class="col-sm-6">
                                    <textarea name="message" rows="6" class="form-control" ></textarea>
                                </div>
                            </div>


                            <div class="form-group">

                                    <div class="modal-footer" style="text-align:center;">
                                        <button type="submit" class="btn btn-lg btn-primary">发送</button>
                                    </div>

                            </div>
                        </form>

            </div>
        </div>


<include file="Public:footer_content" />
<script>
    $.validator.setDefaults({
	highlight:function(e){
		$(e).closest(".form-group").removeClass("has-success").addClass("has-error")},
		success:function(e){
			e.closest(".form-group").removeClass("has-error").addClass("has-success")
		},
		errorElement:"span",
		errorPlacement:function(e,r){
			e.appendTo(r.is(":radio")||r.is(":checkbox")?r.parent().parent().parent():r.parent())
		},
		errorClass:"help-block m-b-none",
		validClass:"help-block m-b-none"
	});

    $().ready(function() {
        var e="<i class='fa fa-times-circle'></i> ";
        $("#add-member-form").validate({
			rules:{
				reply_id:{required:!0,digits:true},
				message:{required:true,}
			},
			messages:{
				nammessagee:{
                                    required:e+"不能为空",

                                }

			}
		});

    });
</script>